﻿namespace TextFiles
{
    using System;
    using System.IO;
    using System.Text;

    class ReadsTextFileAndPrintsOddLines
    {
        // 1.2.12.01. Write a program that reads a text file and prints on the console its odd lines.

        static void Main()
        {
            StreamReader sr = new StreamReader(@"../../App.config", Encoding.GetEncoding("windows-1251"));
            Console.WriteLine(sr.ReadLine());
            while (sr.ReadLine() != null)
            {
                string asdf = sr.ReadLine();
                if (asdf != null)
                {
                    Console.WriteLine(asdf);
                }
            }
            sr.Close();
        }
    }
}